package io.renren.modules.substation.dao;

import io.renren.modules.substation.entity.TBaseDictInfoEntity;
import io.renren.modules.substation.entity.TBusiDevMonitorInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 设备监测信息实时表
 * 
 * @author yzx
 * @email sunlightcs@gmail.com
 * @date 2020-06-20 11:20:38
 */
@Mapper
public interface TBusiDevMonitorInfoDao extends BaseMapper<TBusiDevMonitorInfoEntity> {

    List<TBusiDevMonitorInfoEntity> queryMonitorByCondition(TBusiDevMonitorInfoEntity tBusiDevMonitorInfoEntity);

    int countNormalMeasureBySta(Map<String, Object> param);

    int countAllMeasureBySta(Map<String, Object> param);

    List<TBusiDevMonitorInfoEntity> getDevDataByDev(Map<String, Object> param);

    int updateMonitorByCode (TBusiDevMonitorInfoEntity tBusiDevMonitorInfoEntity);

    int updateMonitorByCodeKindDesc (TBusiDevMonitorInfoEntity tBusiDevMonitorInfoEntity);

    int countNormalMeasureByArea(Map<String, Object> param);

    int countAllMeasureByArea(Map<String, Object> param);

    List<TBusiDevMonitorInfoEntity> countAllMeasureGroup();

    List<TBusiDevMonitorInfoEntity> countNormalMeasureGroup();
}
